/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package td3.Modele;
import java.util.Random;

/**
 *
 * @author fredericdasilva
 */
public class Tool {
    public static int monRandom(int min, int max)
    {
        //return (int)(Math.random()*(max-min)+min);//%max;
        //return (int)(Math.random()*(max-min)+min)%max;
        Random rand = new Random();
        //return rand.nextInt(max-min);
        return rand.nextInt(max);
    }
    
    /*  public static void main(String[] args) {
          int x, y;
          x=2; y=10; 
          System.out.println(monRandom(x, y));
}*/
}

  
